package com.iamteer.cupband;

import android.app.Fragment;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;

public class HistoryFragment extends Fragment {

    private ImageView ivDate;
    private ImageView ivResult;
    private Bitmap bmDate;
    private Bitmap bmResult;

    public HistoryFragment() {
        // Required empty public constructor
    }


    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View root = inflater.inflate(R.layout.fragment_history, container, false);

        ivDate = (ImageView) root.findViewById(R.id.ivDate);
        ivResult = (ImageView) root.findViewById(R.id.ivResult);

        ivDate.setImageResource(R.drawable.history_top);
        ivResult.setImageResource(R.drawable.history_bottom);

//        bmDate = BitmapFactory.decodeResource(getResources(), R.drawable.history_top);
//
//        System.out.println("Size: " + bmDate.getByteCount());


        Log.i("TAG", "HistoryFragment CreateView");
        return root;
    }

}
